package com.sunda.spmswms.response;

import com.sunda.spmscommon.ResponseResult;
import com.sunda.spmswms.entity.ShelfOnTaskDtl;

import java.util.List;

public class ResponseResultEx extends ResponseResult {

    List<ShelfOnTaskDtl> shelfOnTaskDtls;

    //返回请求成功信息
    public static ResponseResultEx success(){
        ResponseResultEx responseResult = new ResponseResultEx();
        responseResult.setCode(200);
        responseResult.setMsg("请求成功");
        return responseResult;
    }

    //返回请求成功，及自定义信息
    public static ResponseResultEx success(String msg){
        ResponseResultEx responseResult = new ResponseResultEx();
        responseResult.setCode(200);
        responseResult.setMsg(msg);
        return responseResult;
    }

    public ResponseResultEx addShelfOnDtls(List<ShelfOnTaskDtl> shelfOnTaskDtls) {
        this.shelfOnTaskDtls=shelfOnTaskDtls;
        return this;
    }
    public  List<ShelfOnTaskDtl> getShelfOnTaskDtls() { return  this.shelfOnTaskDtls;}

}
